package com.dalin.platform.loa.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.loa.service.LoaService;

/*****************************************************************************
 * @content: 保存角色的菜单选择                                               *
 * @author : 那建林                                                          *
 * @crtDate: 2009-07-29                                                     *
 ****************************************************************************/
public class RoleAddMenusAction extends StrutsTwoAction {
	private LoaService loaService;
	private Long roleId;
	private String[] menuIdArray;

	public String execute() throws Exception {
		try {
			loaService.addRoleMenus(roleId, menuIdArray);
			setResContent(true, "");
		} catch (Exception e) {
			e.printStackTrace();
			setResContent(e);
		}
		return null;
	}


	
	
	
	
	/*************************************************************************
	 * 以下是bean属性的set/get方法
	 */

	public LoaService getLoaService() {
		return loaService;
	}
	public void setLoaService(LoaService loaService) {
		this.loaService = loaService;
	}
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public String[] getMenuIdArray() {
		return menuIdArray;
	}

	public void setMenuIdArray(String[] menuIdArray) {
		this.menuIdArray = menuIdArray;
	}
}
